package org.gd136.ce.script.impl;

import org.gd136.ce.script.Script;
import org.gd136.ce.script.ScriptStage;

public class EndScript extends Script {

	@Override
	public Script readScript(String scriptLine) {
		EndScript es = null;
		if ("#gameEnd".equals(scriptLine)) {
			es = new EndScript();
			es.addToPoolAndLinkFrontScript();
		}
		return es;
	}

	@Override
	public void execute(ScriptStage stage) {
		SM.stack.clear();
	}

}
